<script language="javascript" type="text/javascript">
	function changeText() {
		var theObjList = document.getElementById("xixi");
		var theObjText = document.getElementById("LXU");
		theObjText.value = theObjList[theObjList.selectedIndex].text;
	}
	function changeFocus() {
		var theObjText = document.getElementById("LXU");
		theObjText.focus();
	}
</script>
<div class="pageContent">

	<form method="post"
		action="__URL__/insert/navTabId/__MODULE__/callbackType/closeCurrent"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="user_id"
			value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>" /> <input
			type="hidden" name="pid" value="{$pid}"> <input type="hidden"
			name="customerno" value="">
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<label>客户号：</label> <input type="text"
					id="alphanumeric" class="alphanumeric" name="customerno" readonly
					value="<?php echo date('YmdHis')?>" alt="请输入客户编号" onfocus="changeFocus();">
			</div>
			<div class="unit">
				<label>客户类型：</label> <select id="xixi"
					name="xixi"
					style="width: 100px; top: 10px; position: absolute; clip: rect(0px, auto, auto, 82px);"
					onChange="return changeText();">
					<option value="中标">中标</option>
					<option value="贸易">贸易</option>
				</select><input id="LXU" type="text" name="customertype"
					style="width: 125px; top: 10px; position: absolute;" value="中标" />
			</div>
			<div class="unit">
				<label>客户名称：</label> <input type="text"
					class="required" name="customername">
			</div>
			<div class="unit">
				<label>业务员：</label> <input type="text"
					name="customermanager">
			</div>
			<div class="unit">
				<label>电话：</label> <input type="text"
					name="phone">
			</div>
			<div class="unit">
				<label>传真：</label> <input type="text"
					name="fax">
			</div>
			<div class="unit">
				<label>网址：</label> <input type="text"
					name="site">
			</div>
			<div class="unit">
				<label>邮箱：</label> <input type="text"
					name="email">
			</div>

			<div class="unit">
				<label>城市：</label> <input type="text"
					name="city">
			</div>
			<div class="unit">
				<label>邮编：</label> <input type="text"
					name="zip">
			</div>
			<div class="unit">
				<label>地址：</label> <input type="text"
					name="address">
			</div>
			<div class="unit">
				<label>开户银行：</label> <input type="text"
					name="openbank">
			</div>
			<div class="unit">
				<label>银行账号：</label> <input type="text"
					name="accountsno">
			</div>
			<div class="unit">
				<label>税号：</label> <input type="text"
					name="taxno">
			</div>
			<div class="unit">
				<label>备注：</label>
				<TEXTAREA name="notes" rows="3" cols="61" style="width: 357px;"></textarea>
			</div>
		</div>

		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>